Since USER_PTRS_PER_PGD depends on TASK_SIZE and thus on the current
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 7 Feb 2006 18:16:11 +0000 (19:16 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 7 Feb 2006 18:16:11 +0000 (19:16 +0100)
commite808fe9ad9d44c4d3b3b88a13fb805caaea0ddb3
treebc53118e41ca31d50c342051343e26a9f04e3d7d
parent8a0cd2e31b77a965403f68923b5e629cdfe2330e
Since USER_PTRS_PER_PGD depends on TASK_SIZE and thus on the current
thread, it must not be used in code that can be called in the context
switch path (otherwise the 32-bitness of the outgoing task is used
here rather then the 32-bitness of the incoming one, possibly
resulting in large parts of the page tables not getting converted to
read-only).

Signed-off-by: Jan Beulich <JBeulich@novell.com>
linux-2.6-xen-sparse/arch/x86_64/mm/pageattr-xen.c